const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/commission",
  component: Layout,
  redirect: "/commission/statement",
  meta: {
    icon: "ep:chrome-filled",
    title: "推广管理",
    rank: 9
  },
  children: [
    {
      path: "/commission/account",
      name: "Account",
      component: () => import("@/views/commission/account.vue"),
      meta: {
        title: "推广账户"
      }
    },
    {
      path: "/commission/records",
      name: "Records",
      component: () => import("@/views/commission/records.vue"),
      meta: {
        title: "推广记录"
      }
    },
    {
      path: "/commission/statement",
      name: "Statement",
      component: () => import("@/views/commission/statement.vue"),
      meta: {
        title: "对账单"
      }
    },
    {
      path: "/commission/withdrawalRecords",
      name: "WithdrawalRecords",
      component: () => import("@/views/commission/withdrawalRecords.vue"),
      meta: {
        title: "提现记录"
      }
    }
  ]
} satisfies RouteConfigsTable;
